package cn.wolfcode.crm.web.controller;/**
 * Created by 10797 on 2018/7/14.
 */

import cn.wolfcode.crm.query.GuaranteeBillQueryObject;
import cn.wolfcode.crm.query.PayinfoQueryObject;
import cn.wolfcode.crm.query.PaymentBillQueryObject;
import cn.wolfcode.crm.query.PaymentResultQueryObject;
import cn.wolfcode.crm.service.IGuaranteeBillService;
import cn.wolfcode.crm.service.IPaymentResultService;
import cn.wolfcode.crm.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: crm
 * @description:
 * @author: Mr.chen
 * @create: 2018-07-14 15:39
 **/
@Controller
@RequestMapping("paymentResult")
public class PaymentResultController {

    @Autowired
    private IPaymentResultService paymentResultService;

    @RequestMapping("")
    public String list(){
        return "/paymentResult/list";
    }

    @RequestMapping("query")
    @ResponseBody
    public PageResult query(PaymentResultQueryObject qo){
        return paymentResultService.query(qo);
    }
}
